package filtersoter

import "iptv_server/v3/v2_src/utils/common"

func NewSorter() common.Sorter {
	return &sorter{
		store: make([]string, 0),
	}
}

type sorter struct {
	store []string
}

func (f *sorter) GetN(i int) string {
	return f.store[i]
}

func (f *sorter) Size() int {
	return len(f.store)
}

func (f *sorter) Put(key string) {
	f.store = append(f.store, key)
}
